import Input from "./widgets/Input"
import Select from "./widgets/Select"
import Row from "./widgets/Row"
import Slider from "./widgets/Slider"
import Rate from "./widgets/Rate"
import TimePicker from "./widgets/TimePicker"
import Button from "./widgets/Button"

// 将组件类型和组件对应起来
class WidgetMap {
  constructor() {
    this.widgets = new Map();
    this.widgets.set("input", Input);
    this.widgets.set("select", Select);
    this.widgets.set("row", Row);
    this.widgets.set("slider", Slider);
    this.widgets.set("rate", Rate);
    this.widgets.set("timePicker", TimePicker);
    this.widgets.set("button", Button);
  }
}

export default new WidgetMap()